<template>
    <div class="app-wrapper">
        <el-container>
            <el-aside width="210px" class="aside">Aside</el-aside>
            <el-container>
                <el-header class="header">
                    <div class="left">aaa</div>
                    <div class="right">fff</div>
                </el-header>
                <el-main>Main</el-main>
            </el-container>
        </el-container>
    </div>

</template>

<script lang="ts" setup>
import {useCounterStore} from '../../stores/counter'

const store = useCounterStore()
import {
    Document,
    Menu as IconMenu,
    Location,
    Setting,
} from '@element-plus/icons-vue'

const handleOpen = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}

const isopen = () => {
    store.iscollapse = !store.iscollapse
}
</script>

<style scoped>
.app-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.app-wrapper:after {
    content: '';
    display: table;
    clear: both;
}

.app-wrapper.mobile.openSidebar {
    position: fixed;
    top: 0;
}

.fixed-header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9;
    width: calc(100% - 210px);
    transition: width 0.28s;
}

.hideSidebar .fixed-header {
    width: calc(100% - 54px);
}

.mobile .fixed-header {
    width: 100%;
}

.drawer-bg {
    background: #000;
    opacity: 0.3;
    width: 100%;
    top: 0;
    height: 100%;
    position: absolute;
    z-index: 999;
}

</style>
